﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TRTCMain.Controls
{
    public partial class UserVideoItem : UserControl
    {
        public UserVideoItem()
        {
            InitializeComponent();
            panel.MouseClick += Panel_MouseClick;
            panel.DoubleClick += Panel_DoubleClick;
        }

        private void Panel_DoubleClick(object sender, EventArgs e)
        {
            this.OnDoubleClick(e);
        }

        private void Panel_MouseClick(object sender, MouseEventArgs e)
        {
            this.OnMouseClick(e);
        }

        public void SetName(string name) {
            nameLabel.Text = name;
        }

        public Panel GetVideoPanel() {
            return panel;
        }

        public VideoUserStatusControl GetStatusControl() {
            return videoUserStatusControl;
        }
    }
}
